<?php

use yii\helpers\Html;
use mdm\admin\components\Helper;
use yii\grid\GridView;

/* @var $this yii\web\View */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = Yii::t('common', 'feedback');
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="feedback-index">

    <?= GridView::widget([
        'dataProvider' => $dataProvider,
        'columns' => [
            //['class' => 'yii\grid\SerialColumn'],

            'id',
            'type',
//            'user_id',
            'user_name',
            'mobile',
             'email:email',
            // 'content:ntext',
            // 'field1',
            // 'field2',
            // 'field3',
            // 'field4',
            // 'status',
            // 'version',
            // 'created_by',
//             'created_at:time',
            [
             'attribute' => 'created_at',
             'value' => function($model) {
                 return \common\helpers\TStringHelper::ShowDate($model->created_at, 1);
             }
            ],
            // 'created_from',
            // 'created_ip',
            // 'updated_by',
            // 'updated_at',
            // 'updated_from',
            // 'updated_ip',
            // 'is_deleted',

            [
                'class' => 'yii\grid\ActionColumn',
                'template' => Helper::filterActionColumn('{view}{delete}'),
            ],
        ],
    ]); ?>
</div>
